FROM xxfaxy/self-alpine-nginx-php-fpm-simple
ADD common/nginx.main.conf /etc/nginx/nginx.conf
RUN rm -rf /etc/nginx/conf.d/*
ADD common/nginx.conf /etc/nginx/conf.d/nginx.conf
ADD common/php.ini /etc/php7/php.ini
ADD common/php-fpm.conf /etc/php7/php-fpm.conf
ADD common/50-setting.ini /etc/php7/conf.d/50-setting.ini
VOLUME "/app"
WORKDIR "/app"
ADD code /app
RUN chown nginx:nginx /app -R
RUN chmod 777 /app -R
EXPOSE 80 443
ADD run.sh /run.sh
RUN chmod +x /run.sh
CMD ["/run.sh"]